Skip to content

fix(restful-ws): restore the jakarta.ws.rs.ext.Providers service file - #802

Open
EmiRZx wants to merge 1 commit into
cloudevents:mainfrom
EmiRZx:restore-jakarta-providers
Open

EmiRZx wants to merge 1 commit into
cloudevents:mainfrom
EmiRZx:restore-jakarta-providers

Conversation

@EmiRZx

@EmiRZx EmiRZx commented Dec 5, 2026

Copy link
Copy Markdown

fixes #801. adds META-INF/services/jakarta.ws.rs.ext.Providers back to cloudevents-http-restful-ws-jakarta with the same content as the other three service files. the Quarkus example test now posts a binary and a structured event and expects 201. on Java 17 both tests fail with 500 without the file and pass with it. the packaged example receives its own events again.

the tests of all modules that depend on cloudevents-http-restful-ws-jakarta pass, including the RESTEasy, Jersey, Liberty and Spring integration tests. RESTEasy reads the same file, so they now behave as they did with 4.0.2.

The javax module listed CloudEventsProvider in
META-INF/services/javax.ws.rs.ext.Providers (cloudevents#233), so Quarkus and
RESTEasy registered it without extra config. The Jakarta module from
cloudevents#732 kept the MessageBodyReader, MessageBodyWriter and
ClientRequestFilter files but not this one. Since 4.1.0 Quarkus REST
doesn't register the provider. A CloudEvent resource parameter falls
back to Jackson and answers 500, and the REST client can't send
CloudEvents either.

Add the file back and let the Quarkus example test post a binary and
a structured event.

Signed-off-by: emir <52245396+EmiRZx@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarkus REST doesn't find CloudEventsProvider since 4.1.0

1 participant